#ifdef MEM_DEBUG

#include <ostream>
#include "Allocation.h"

namespace Engine
{
	std::ostream& operator<<(std::ostream& s, const Allocation& a)
	{
		return s << "leak at address: " << a.GetAddress() <<"\t"
				 << "size: " << a.GetSize() << " byte(s)" << "\t" << "in file:" 
				 << a.GetFileName() << "\t" << "at line:" << a.GetLineNum();
	}


	Allocation::Allocation(void* address, size_t size, const char* fileName, int line) 
	{
		m_address = address;
		m_size = size;
		m_fileName = fileName;
		m_line = line;
	}
}

#endif

